package generate;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GeneratorConfig {

    private String auth = "seven";
    private String packageName;
    private String modelName = "tempmodel";
    private String storagePath;


    private String driver;
    private String schemaName = "public";
    private String ip = "127.0.0.1";
    private Integer port = 5432;
    private String dbName;
    private String url;
    private String userName;
    private String password;

    public String pgCreateUrl() {
        return "jdbc:postgresql://" + this.ip + ":"
                + this.port + "/" + this.dbName + "?currentSchema=" +
                this.schemaName + "&useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8";
    }
}
